package com.heima.article.controller;

import com.heima.article.entity.ApArticleContent;
import com.heima.article.service.IApArticleContentService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * APP已发布文章内容表 前端控制器
 * </p>
 *
 * @author SpaceTraveller
 * @since 2022-11-07
 */
@RestController
@RequestMapping("/api/v1/article_content")
@Api(tags = "APP已发布文章内容表接口")
public class ApArticleContentController{

    @Autowired
    private IApArticleContentService ContentService;

    @PostMapping("/saveArticleContent")
    public boolean saveArticleContent(@RequestBody ApArticleContent articleContent){
        return ContentService.saveArticleContent(articleContent);
    }

}
